<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8"> <![endif]-->
<!--[if !IE]><!-->
<html lang="zh">
<!--<![endif]-->
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path;
%>

<head>
    <meta charset="utf-8"/>
    <title>保险代理后台管理系统</title>
    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport"/>
    <meta content="" name="description"/>
    <meta content="" name="author"/>
    <!-- ================== BEGIN BASE CSS STYLE ================== -->
    <jsp:include page="../common/header.jsp"></jsp:include>
    <%@include file="../common/taglib.jsp" %>
    <!-- ================== END BASE CSS STYLE ================== -->
    <style>
        .card-title {
            font-size: 18px;
            margin-top: 8px;
            font-weight: normal;
        }
    </style>
    <!-- ================== 单独作用于本页表格td ================== -->
    <!-- ================== 单独作用于本页表格td ================== -->

</head>
<body>
<!-- begin #page-loader -->
<div id="page-loader" class="fade in"><span class="spinner"></span></div>
<!-- end #page-loader -->

<!-- begin #page-container -->
<div id="page-container" class="fade page-sidebar-fixed page-header-fixed">
    <jsp:include page="../common/top.jsp"/>

    <!-- begin #sidebar -->
    <jsp:include page="../common/sitebar.jsp"/>
    <div class="sidebar-bg"></div>
    <!-- end #sidebar -->

    <!-- begin #content -->
    <div id="content" class="content">

        <!-- begin page-header -->
        <!-- end page-header -->


        <div class="row">

            <!-- begin col-3 -->
            <div class="col-md-3 col-sm-6">
                <div class="widget widget-stats bg-green" style="height: 164px;">
                    <%--<div class="stats-icon"><i class="fa fa-desktop"></i></div>--%>
                    <div class="stats-icon"><i class="fa fa-database"></i></div>
                    <div class="stats-info">
                        <h3 class="card-title">已赚取佣金合计(元)</h3>
                        <p><strong class="h2">${channelCount.earnTotalRebase}</strong></p>
                    </div>
                    <div class="stats-link">
                        <h4 class="fa m-r-10">待结算： ${channelCount.stayRebaseCount}</h4>
                        <h4 class="fa m-r-10">已结算： ${channelCount.settledRebaseCount}</h4>
                        <br>
                        <p class="fa m-r-10">退保待扣： ${channelCount.stayUnsureRebaseCount}</p>
                        <p class="fa m-r-10">已退保：${channelCount.settledUnsureRebaseCount}</p>

                    </div>
                </div>
            </div>
            <!-- end col-3 -->
            <!-- begin col-3 -->
            <div class="col-md-3 col-sm-6">
                <div class="widget widget-stats bg-blue" style="height: 164px;">
                    <div class="stats-icon"><i class="fa fa-chain-broken"></i></div>
                    <div class="stats-info">
                        <h3 class="card-title">待还保费(元)</h3>
                        <p><strong class="h2">${channelCount.stayPremiumCount}</strong></p>

                    </div>
                </div>
            </div>
            <!-- end col-3 -->
            <!-- begin col-3 -->
            <div class="col-md-3 col-sm-6">
                <div class="widget widget-stats bg-purple"  style="height: 164px;">
                    <div class="stats-icon"><i class="fa fa-file-text-o"></i></div>
                    <div class="stats-info">
                        <p>欢迎开单</p>
                    </div>
                    <div class="stats-link">
                        <a href="${ctx}/ins/order/list?createorder=1" style="margin-top:66px;">新建订单&nbsp;<i
                                class="fa fa-arrow-circle-o-right"></i></a>
                    </div>
                </div>
            </div>
            <!-- end col-3 -->

        </div>
        <!-- end row -->
        
        				<input type="hidden" id="lendTime" value="${landTime }">
						<input type="hidden" id="tid" value="${tid }">

					<div class="modal fade" id="modal-dialog">
								<div class="modal-dialog modal-sm">
									<div class="modal-content">
										<div class="modal-header">
											<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
											<h4 class="modal-title">温馨提示</h4>
										</div>
										<div class="modal-body">
											为了安全请去修改密码!
										</div>
										<div class="modal-footer">
											<a href="javascript:;" onclick="toEditPwd()" class="btn btn-primary" data-dismiss="modal">确定</a>
											<a href="javascript:;" onclick="toEditLand()" class="btn btn-default" data-dismiss="modal">取消</a>
										</div>
									</div>
								</div>
					</div>
        
    </div>

    <!-- end #content -->

</div>
<!-- end page container -->
<jsp:include page="../common/footer.jsp"/>

<!-- ================== END PAGE LEVEL JS ================== -->


<script src="${ctx}/static/js/channel/channel_home.js"></script>

</body>
<script>
$(document).ready(function (){
	var str = $("#lendTime").val();
	if(str==0){
		$("#modal-dialog").modal("show");
	}
})

function toEditLand(){
	var tid = $("#tid").val();
	$.ajax({
		type:"post",
		url:"<%=path%>/sysuser/editLand",
		data:{tid:tid},
		success:function (msg){
			
		}
	});
}

function toEditPwd(){
	$("#modal-checkPwd").modal("show");
}

</script>
</html>
